
import com.feng.fengDUtil.dao.annotation.Id;
import com.feng.fengDUtil.dao.annotation.Populate;
import com.feng.fengDUtil.dao.annotation.Table;

import java.util.List;

public class Person {
    @Id
    private Long id;
    private String name;

    @Populate("personId")
    private List<PersonPosition> personPositions;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<PersonPosition> getPersonPositions() {
        return personPositions;
    }

    public void setPersonPositions(List<PersonPosition> personPositions) {
        this.personPositions = personPositions;
    }
}
